<!DOCTYPE html>
<html>
<head>
	<title>LoginApp</title>
	<link rel="stylesheet" type="text/css" href="/css/bootstrap.css">
	<link rel="stylesheet" type="text/css" href="/css/style.css">
	
</head>
<body>
        <div class="container">
      <div class="header clearfix">
        <nav>
          <ul class="nav nav-pills pull-right">
            {{#if user}}
              <li role="presentation" class="active"><a href="/">Dashboard</a></li>
              <li role="presentation"><a href="/users/logout">Logout</a></li>
            {{else}}
              <li role="presentation"><a href="/users/login">Login</a></li>
              <li role="presentation"><a href="/users/register">Register</a></li>
            {{/if}}

          </ul>
        </nav>
        <h3 class="text-muted">LoginApp</h3>
      </div>


      <div class="row">
        <div class="col-lg-12">
        	{{#if success_msg}}
        		<div class="alert alert-success">{{success_msg}}</div>
        	{{/if}}
        	{{#if error_msg}}
        		<div class="alert alert-danger">{{error_msg}}</div>
        	{{/if}}
        	{{#if error}}
        		<div class="alert alert-danger">{{error}}</div>
        	{{/if}}
        	{{{body}}}
        </div>

      </div>

      <footer class="footer">
        <p>&copy; 2016 Sam Fu, Inc.</p>
      </footer>

    </div> <!-- /container -->
</body>
</html>